{% extends 'TopxiaWebBundle:Coin:layout.html.twig' %}
{% block title %}我的邀请 - {{ parent() }}{% endblock %}

{% set side_nav = 'my-invitation' %}

{% block main %}

  <div class="es-section h400">
{% include 'TopxiaWebBundle:Coin:integral-bar.html.twig' %}
      <div class="row form-group">
    <div class="col-md-2 control-label">
      <label for="truename">邀请好友送积分</label>
    </div>
    <div class="col-md-7 controls">
      <input type="text" id="invitation" name="invitation" onclick="this.select();" class="form-control" value="http://www.kuke99.com/register?goto=%2F&userid={{ userid }}" > 
    </div>  
     <div class="col-md-1 control-label" >
      <label ><input class="btn btn-primary" onclick="copy();" type="button" value="复制链接"></label>
    </div>
          
  </div>
  
 </div>
  <script>
      function copy()
      {
           alert("浏览器不支持复制功能,请使用Ctrl+C进行复制");
        var d=document.all("invitation").value;
         window.clipboardData.setData('text', d);
         
          
      }
  </script>
{% endblock %}